package br.net.woodstock.tickettoride.client.jdk6;

import java.io.Serializable;

import br.net.woodstock.tickettoride.client.TicketService;
import br.net.woodstock.tickettoride.client.TicketSession;

public final class TicketSessionHolder implements Serializable {

	private static final long			serialVersionUID	= 3700713626857126684L;

	private static TicketSessionHolder	instance			= new TicketSessionHolder();

	private TicketSession				session;

	private TicketSessionHolder() {
		super();
		TicketClient client = TicketClient.getInstance();
		TicketService service = client.getService();
		this.session = service.getSession();
	}

	public TicketSession getSession() {
		return this.session;
	}

	public static TicketSessionHolder getInstance() {
		return TicketSessionHolder.instance;
	}

}
